<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>大事件主页</title>
  <script>
    // 校验：校验token是否存在
    let token = localStorage.getItem("token"); // null
    if (!token) {
      // 没有token信息
      location.href = "login.html";
    }
  </script>
  <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
  <link rel="stylesheet" href="/assets/fonts/iconfont.css">
  <link rel="stylesheet" href="/assets/css/home/index.css">
</head>

<body class="layui-layout-body">
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <img src="/assets/images/logo.png" alt="">
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
          <a href="javascript:;">
            <img src="http://t.cn/RCzsdCq" class="layui-nav-img ">
            <span class="text-avatar"></span>
            个人中心
          </a>
          <dl class="layui-nav-child">
            <dd><a href="/user/user.html" target="layBody">基本资料</a></dd>
            <dd><a href="/user/user_avatar.html" target='layBody'>更换头像</a></dd>
            <dd><a href="/user/user_pwd.html" target='layBody'>重置密码</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item logout"><a href=""><span class="iconfont icon-tuichu"></span>退出</a></li>
      </ul>
    </div>

    <div class="layui-side layui-bg-black">
      <div class="layui-side-scroll">
        <div class="userInfo">
          <img src="http://t.cn/RCzsdCq" class="layui-nav-img ">
          <span class="text-avatar"></span>
          <span>欢迎</span>
          <span class="welcome">a</span>
        </div>
        <ul class="layui-nav layui-nav-tree " lay-filter="test" lay-shrink="all">
          <li class="layui-nav-item layui-this">
            <a href="/home/dashboard.html" target="layBody"><span class="iconfont icon-home"></span>首页</a>
          </li>
          <li class="layui-nav-item ">
            <a class="" href=" javascript:;"><span class="iconfont icon-16"></span>文章管理</a>
            <dl class="layui-nav-child">
              <dd><a href="/article/art_cate.html" target="layBody"><i class="layui-icon layui-icon-app"></i>文章类别</a>
              </dd>
              <dd><a href="/article/art_list.html" target="layBody"><i class="layui-icon layui-icon-app"></i>文章列表</a>
              </dd>
              <dd><a href="/article/art_add.html" target="layBody"><i class="layui-icon layui-icon-app"></i>发表文章</a>
              </dd>
            </dl>
          </li>
          <li class="layui-nav-item">
            <a href="javascript:;"><span class="iconfont icon-user"></span>个人中心</a>
            <dl class="layui-nav-child">
              <dd><a href="/user/user.html" target="layBody"><i class="layui-icon layui-icon-app"></i>基本资料</a></dd>
              <dd><a href="/user/user_avatar.html" target='layBody'><i class="layui-icon layui-icon-app"></i>更换头像</a>
              </dd>
              <dd><a href="/user/user_pwd.html" target='layBody'><i class="layui-icon layui-icon-app"></i>重置密码</a>
              </dd>
            </dl>
          </li>
        </ul>
      </div>
    </div>

    <div class="layui-body">
      <!-- 内容主体区域 -->
      <div style="height: 100%;">
        <!-- 内嵌框架,src属性值为显示的网页,配合a链接使用,a链接的src为指定网页,target为此iframe的name属性值 -->
        <iframe src="/article/art_list.html" frameborder="0" name='layBody'></iframe>
      </div>
    </div>

    <div class="layui-footer">
      <!-- 底部固定区域 -->
      © www.itheima.com - 黑马程序员
    </div>
  </div>
  <script src="/assets/lib/jquery.js"></script>
  <script src="/assets/lib/layui/layui.all.js"></script>
  <script src="/assets/js/home/ajaxBase.js"></script>
  <script src="/assets/js/home/index.js"></script>
</body>

</html>